﻿<%@ Page ValidateRequest="false" Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content4" ContentPlaceHolderID="FileImportContent" runat="server">
    <script language="JavaScript" type="text/javascript" src="../../Scripts/scrutturaNote/elrte.min.js"></script> 
    <link rel="stylesheet" href="../../Content/elrte.min.css" type="text/css" media="screen" charset="utf-8"/>
    <script src="../../Scripts/scrutturaNote/i18n/elrte.it.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
        $().ready(function () {
            var opts = {
                lang: 'it',   // set your language
                styleWithCSS: false,
                height: 400,
                toolbar: 'maxi'
            };
            // create editor
            $('#TextArea').elrte(opts);

            // or this way
            // var editor = new elRTE(document.getElementById('our-element'), opts);
        });
 </script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=   ((MvcSite.Models.Notizia)ViewData["Notizia"]).Titolo%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    

    <h2><%= ((MvcSite.Models.Notizia)ViewData["Notizia"]).Titolo %> </h2>
    <%--<%: Html.ActionLink("Indietro", "Navigation", "Navigation")%>--%>
    <form method="post" action="../SaveNotice" >
        <input type=submit value="Salva"/>
        <h4>Scegli la categoria</h4>
        <%= Html.Hidden("id", ((MvcSite.Models.Notizia)ViewData["Notizia"]).Id) %>
        <%= Html.Hidden("nuova", false) %>
        <%= Html.DropDownList("ListCategorie")%>
        <br />
        <label for="Titolo">Titolo:</label>
        <%= Html.TextBox("Titolo", ((MvcSite.Models.Notizia)ViewData["Notizia"]).Titolo)%>
        <br />
        <br />
        <%= Html.TextArea("TextArea", ((MvcSite.Models.Notizia)ViewData["Notizia"]).Testo, new { cols = 60, rows = 10 })%>
    </form>
    
</asp:Content>
